View Javadoc
1 /* 2 * Created on 2004.09.09. 3 * 4 * In p2p project 5 */ 6 7 8 package net.sf.bigyo.container.profile; 9 10 import java.util.HashSet; 11 import java.util.Set; 12 13 import org.apache.log4j.LogManager; 14 import org.apache.log4j.Logger; 15 16 /*** 17 * @author zsombor 18 * 19 * Created at 2:21:46 net.sf.bigyo.container.profile.SimpleProfileChecker 20 * 21 */ 22 public class SimpleProfileChecker implements ProfileChecker { 23 final static Logger LOG = LogManager.getLogger(SimpleProfileChecker.class); 24 25 Set profiles = new HashSet(); 26 27 /*** 28 * 29 */ 30 public SimpleProfileChecker() { 31 } 32 33 /* 34 * (non-Javadoc) 35 * 36 * @see net.sf.bigyo.container.profile.ProfileChecker#hasProfile(java.lang.String) 37 */ 38 public boolean hasProfile(String name) { 39 return profiles.contains(name); 40 } 41 42 public void addProfile(String name) { 43 LOG.info("Add container profile " + name); 44 profiles.add(name); 45 } 46 47 }

This page was automatically generated by Maven